package com.dynabook.ems.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName ems_work_order_detail
 */
@TableName(value ="ems_work_order_detail")
@Data
public class EmsWorkOrderDetail implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id",type= IdType.ASSIGN_ID)
    private Long id;

    /**
     * 样品型号
     */
    @TableField(value = "model_type")
    private String modelType;

    /**
     * 样品名称
     */
    @TableField(value = "model_name")
    private String modelName;

    /**
     * 样品数量
     */
    @TableField(value = "model_number")
    private Integer modelNumber;

    /**
     * 单位
     */
    @TableField(value = "model_unit")
    private String modelUnit;

    /**
     * 样品类型
     */
    @TableField(value = "model_category")
    private String modelCategory;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 0未删除 1删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    /**
     * 数据插入时间
     */
    @TableField(value = "insert_time")
    private LocalDateTime insertTime;

    /**
     * 数据更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 详情状态 0 待选 1 已选 2 已拒 3已批 4 改造品
     */
    @TableField(value = "detail_status")
    private Integer detailStatus;

    /**
     * 样品细分
     */
    @TableField(value = "category")
    private String category;

    /**
     * 总数
     */
    @TableField(value = "total_num")
    private Integer totalNum;

    /**
     * 工单号
     */
    @TableField(value = "work_order_number")
    private String workOrderNumber;


    /**
     * bom详情id
     */
    @TableField(value = "bom_detail_id")
    private String bomDetailId;

    /**
     * 是否是第一条 0 不是 1 是
     */
    @TableField(value = "is_first")
    private Integer isFirst;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}